<template>
  <div id="app">
    <HeadNavInfo></HeadNavInfo>
    <router-view/>
  </div>
</template>

<script>
import HeadNavInfo from "@/components/HeadNavInfo";
import Cookies from "js-cookie";


export default {
  name:"App",
  created() {
    if(Cookies.get("background")){
      document.body.style.backgroundImage = "url('" + Cookies.get("background") + "')";
    }
    else {
      document.body.style.backgroundImage = "url('https://nav.edevplat.com/navbg/7344.webp')";
    }
  },
  components: {
    HeadNavInfo
  }
}

</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
}
</style>
